using System;
using DreamDriven.ObjectModel.Mvp;

namespace DreamDriven.Web.Mvp
{
    public class ApplicationPresenter : Presenter<IApplicationView>
    {
        public ApplicationPresenter(IApplicationView view) : base(view)
        {
            View.ApplicationDisposing += OnApplicationDispose;
        }

        private void OnApplicationDispose(object sender, EventArgs e)
        {            
            ReleaseServices();
        }
    }
}